﻿using MyTodo.Shared.Dtos;
using MyTodo.Shared.Services;

namespace MyTodo.Api.Services.Interfaces;

public interface ILoginService
{   
    /// <summary>
    /// 登录接口
    /// </summary>
    /// <param name="account"></param>
    /// <param name="password"></param>
    /// <returns></returns>
    Task<ApiResponse> LoginAsync(string account, string password); 
    /// <summary>
    /// 注册接口
    /// </summary>
    /// <param name="user"></param>
    /// <returns></returns>
    Task<ApiResponse> RegisterAsync(UserDto user); 
}
